<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/views/common/import.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

</head>
<body>
	<c:if test="${! empty sessionScope.talent}">
	<h3>登录成功!欢迎您 <small>
		<span class="label label-success">
		<a href="<%=request.getContextPath()%>/ResumeServlet?command=list&pageNo=1&pageSize=10">
		${talent.name}
		</a>
		</span>
			</small>
			<a href="<%=request.getContextPath()%>/TalentServlet?command=logout">
			<span class="pull-right"><button class="btn btn-warning">注销</button></span>
			</a>
			<span class="pull-right">&nbsp;</span>
			<a href="<%=request.getContextPath()%>/TalentServlet?command=toDatePwdUI">
			<span class="pull-right"><button class="btn btn-warning">修改密码</button></span>
			</a>
			<span class="pull-right">&nbsp;</span>
			<a href="<%=request.getContextPath()%>/TalentServlet?command=toUpdateUser">
			<span class="pull-right"><button class="btn btn-warning" >个人信息</button></span>
			</a>
			<span class="pull-right">&nbsp;</span>
    		<a href="<%=request.getContextPath()%>/CommonServlet?command=toMainUI">
    		<button type="button" class="btn btn-warning pull-right">返回首页</button>
    		</a>
			</h3>
			<hr>
	
	</c:if>
	
	<c:if test="${! empty sessionScope.company}">
			<strong class="welcome-title">欢迎您，
			<a href="<%=request.getContextPath()%>/CompanyServlet?command=main">
			${company.name }
			</a>
			</strong>
    		<a href="<%=request.getContextPath()%>/CompanyServlet?command=logout">
    		<button type="button" class="btn btn-warning pull-right">注　　销</button>
    		</a>
    		<span class="pull-right">&nbsp;</span>
    		<a href="<%=request.getContextPath()%>/CompanyServlet?command=toUpdatePasswordUI">
    		<button type="button" class="btn btn-warning pull-right">修改密码</button>
    		</a>
    		<span class="pull-right">&nbsp;</span>
    		<a href="<%=request.getContextPath()%>/CompanyServlet?command=toQueryCompanyUI&id=${company.id}">
    		<button type="button" class="btn btn-warning pull-right">基本信息</button>
    		</a>
    		<span class="pull-right">&nbsp;</span>
    		<a href="<%=request.getContextPath()%>/CommonServlet?command=toMainUI">
    		<button type="button" class="btn btn-warning pull-right">返回首页</button>
    		</a>
	    	<hr/>
			
	</c:if>
	
	<c:if test="${ empty sessionScope.company && empty sessionScope.talent}">
			<a href="<%=request.getContextPath()%>/TalentServlet?command=toLoginUI">求职者登录</a>&nbsp;&nbsp;
    		<a href="<%=request.getContextPath()%>/TalentServlet?command=toRegisterUI">求职者注册</a>&nbsp;&nbsp;
    		<a href="<%=request.getContextPath()%>/CompanyServlet?command=toLoginUI">企业登录</a>&nbsp;&nbsp;
    		<a href="<%=request.getContextPath()%>/CompanyServlet?command=toRegisterUI">企业注册</a>
    		<hr>
	</c:if>
</body>
</html>
